.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}
.list {
    white-space: nowrap;
    width: 365px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.item {
    position: relative;
	&::after{
		content: '';
		position: absolute;
		left: -50%;
		top: -50%;
		right: -50%;
		bottom: -50%;
		border: {
			style: solid;
			width: 1px;
			color: #ccc;
			radius: 4px;
		}
		box-sizing: border-box;
		pointer-events: none;
		transform: scale(.5);
	}
    color: $color-text-primary;
    font-size: 12px;
    padding: 5px 9px;
    box-sizing: border-box;
    margin-right: 8px;
    :global(span) {
        display: block;
        width: 112px;
        height: 34px;
        line-height: 17px;
        white-space: normal;
        word-break: break-all;
        overflow: hidden;
    }
    &-active {
        color: $theme-color;
        &::after{
            border-color: currentColor;
        }
    }
}

.popup {
    @media screen and (orientation:portrait) {
        top: 255px;
    }    
    :global(.am-modal-title) {
        font-size: 15px;
        text-align: left;
    }
    .list {
        width: auto;
        flex-wrap: wrap;
        align-items: baseline;
        overflow-x: hidden;
        overflow-y: scroll;
        height: 316px;
        justify-content: space-between;
    }
    .item {
        height: 34px;
        padding: 16px 11px;
        background-color: $color-white;
        box-sizing: content-box;
        margin-right: 0;
        margin-bottom: 12px;
        :global(span){
            width: 139px;
        }
    }
}